using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._UtilityNetworkTools.__un
{
    /// <summary>
    /// <para>Add Spatial Query Rule</para>
    /// <para>Add a spatial query rule to a diagram template</para>
    /// <para>向逻辑示意图模板添加空间查询规则</para>
    /// </summary>    
    [DisplayName("Add Spatial Query Rule")]
    public class AddSpatialQueryRule : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public AddSpatialQueryRule()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_utility_network">
        /// <para>Input Network</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_template_name">
        /// <para>Input Diagram Template</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_is_active">
        /// <para>Active</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_added_features">
        /// <para>Add Features</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_overlap_type">
        /// <para>Relationship</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_existing_features">
        /// <para>Existing Features</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        public AddSpatialQueryRule(object _in_utility_network, object _template_name, _is_active_value _is_active, object _added_features, _overlap_type_value _overlap_type, object _existing_features)
        {
            this._in_utility_network = _in_utility_network;
            this._template_name = _template_name;
            this._is_active = _is_active;
            this._added_features = _added_features;
            this._overlap_type = _overlap_type;
            this._existing_features = _existing_features;
        }
        public override string ToolboxName => "Utility Network Tools";

        public override string ToolName => "Add Spatial Query Rule";

        public override string CallName => "un.AddSpatialQueryRule";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_utility_network, _template_name, _is_active.GetGPValue(), _added_features, _overlap_type.GetGPValue(), _existing_features, _search_distance, _added_where_clause, _existing_where_clause, _description, _out_utility_network, _out_template_name];

        /// <summary>
        /// <para>Input Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Network")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_utility_network { get; set; }


        /// <summary>
        /// <para>Input Diagram Template</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Diagram Template")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _template_name { get; set; }


        /// <summary>
        /// <para>Active</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Active")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public _is_active_value _is_active { get; set; }

        public enum _is_active_value
        {
            /// <summary>
            /// <para>ACTIVE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("ACTIVE")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>INACTIVE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("INACTIVE")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Add Features</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Add Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _added_features { get; set; }


        /// <summary>
        /// <para>Relationship</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Relationship")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public _overlap_type_value _overlap_type { get; set; }

        public enum _overlap_type_value
        {
            /// <summary>
            /// <para>INTERSECT</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("INTERSECT")]
            [GPEnumValue("INTERSECT")]
            _INTERSECT,

            /// <summary>
            /// <para>WITHIN_A_DISTANCE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("WITHIN_A_DISTANCE")]
            [GPEnumValue("WITHIN_A_DISTANCE")]
            _WITHIN_A_DISTANCE,

            /// <summary>
            /// <para>CONTAINS</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("CONTAINS")]
            [GPEnumValue("CONTAINS")]
            _CONTAINS,

            /// <summary>
            /// <para>WITHIN</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("WITHIN")]
            [GPEnumValue("WITHIN")]
            _WITHIN,

            /// <summary>
            /// <para>BOUNDARY_TOUCHES</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("BOUNDARY_TOUCHES")]
            [GPEnumValue("BOUNDARY_TOUCHES")]
            _BOUNDARY_TOUCHES,

            /// <summary>
            /// <para>SHARE_A_LINE_SEGMENT_WITH</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("SHARE_A_LINE_SEGMENT_WITH")]
            [GPEnumValue("SHARE_A_LINE_SEGMENT_WITH")]
            _SHARE_A_LINE_SEGMENT_WITH,

            /// <summary>
            /// <para>CROSSED_BY_THE_OUTLINE_OF</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("CROSSED_BY_THE_OUTLINE_OF")]
            [GPEnumValue("CROSSED_BY_THE_OUTLINE_OF")]
            _CROSSED_BY_THE_OUTLINE_OF,

        }

        /// <summary>
        /// <para>Existing Features</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Existing Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _existing_features { get; set; }


        /// <summary>
        /// <para>Search Distance</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Search Distance")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public string? _search_distance { get; set; } = null;


        /// <summary>
        /// <para>Added Features Query Definition</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Added Features Query Definition")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _added_where_clause { get; set; } = null;


        /// <summary>
        /// <para>Existing Features Query Definition</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Existing Features Query Definition")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _existing_where_clause { get; set; } = null;


        /// <summary>
        /// <para>Description</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Description")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _description { get; set; } = null;


        /// <summary>
        /// <para>Output Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Network")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_utility_network { get; set; }


        /// <summary>
        /// <para>Output Diagram Template</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Diagram Template")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_template_name { get; set; }


        public AddSpatialQueryRule SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}